import request from "@/utils/request";

// 查询版本列表
export function listVersionManage(query) {
  return request({
    url: "/versionManage/getVersionByProducts",
    method: "get",
    params: query,
  });
}

// 删除版本
export function delVersion(data) {
  return request({
    url: "/versionManage/removeVersion",
    method: "post",
    params: data,
  });
}

// 新增版本
export function addVersion(data) {
  return request({
    url: "/versionManage/addVersion",
    method: "post",
    data: data,
  });
}


// 查询全部版本
export function getAllVersion(query) {
  return request({
    url: "/versionManage/getAllVersion",
    method: "get",
    params: query,
  });
}